
var ensEmploye = [new Employe('2332','Ingenieur','Web'),new Employe('2333','Ingenieur','Integration'),new Employe('2334','developpeur','Integration')];
ensEmploye[0].setNom('Martin');
ensEmploye[0].setPrenom('Pierre');
ensEmploye[0].setAge(32);

ensEmploye[1].setNom('Dupont');
ensEmploye[1].setPrenom('Martin');
ensEmploye[1].setAge(24);

ensEmploye[2].setNom('Durand');
ensEmploye[2].setPrenom('Martin');
ensEmploye[2].setAge(28);

//Tableau contenant la liste des employes
document.write(" <TABLE BORDER='1'>  <CAPTION> Liste des employes </CAPTION><TR> <TH>Matricule</TH>");
document.write("<TH>Nom</TH><TH>Prenom</TH> <TH>Age</TH><TH>Categorie</TH><TH>Service</TH><TH>NbHeures</TH>");
document.write("<TH>Heures Maxi Hebdo</TH></TR>");

 for (var i = 0; i < ensEmploye.length; i++) {
 		document.write("<TR>");
 		document.write("<TD>"+ensEmploye[i].getNumMatricule()+"</TD>");
        document.write("<TD>"+ensEmploye[i].getNom()+"</TD>");
        document.write("<TD>"+ensEmploye[i].getPrenom()+"</TD>");
        document.write("<TD>"+ensEmploye[i].getAge()+"</TD>");
        document.write("<TD>"+ensEmploye[i].getCategorie()+"</TD>");
        document.write("<TD>"+ensEmploye[i].getService()+"</TD>");
        ensEmploye[i].ajoutNbHeures(i);
        document.write("<TD>"+ensEmploye[i].getNbHeures()+"</TD>");
        document.write("<TD>"+ensEmploye[i].getNbHeuresHebdo()+"</TD>");
        document.write("<TR>");
   }
document.write(" </TABLE>  ");

